#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 200010;
int T,n,a[N],yanse[N];
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    scanf("%d",&T);
    while(T--){
        scanf("%d",&n);
        for(int i = 1;i<=n;i++) scanf("%d",&a[i]);
        cout<<0<<endl;
    }
    return 0;
}
